FROM mcr.microsoft.com/dotnet/sdk:8.0 AS base
EXPOSE 80
EXPOSE 443
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
WORKDIR app
COPY app .
ENTRYPOINT ["dotnet", "Platform.Web.dll", "--urls", "http://0.0.0.0:${PORT}", "--environment", "Development"]